﻿using System;
using SharpTrainer.DP.Bridge.Generic;
using Zeus.Thunder.Core;

namespace SharpTrainer.DesignPattern
{
    class BridgeGenTest : ITestCase
    {
        public void Run()
        {
            Abstraction ab = new RefinedAbstraction(); 
            
            // Set implementation and call 
            ab.Implementor = new ConcreteImplementorA(); 
            ab.Operation(); 
            
            // Change implemention and call 
            ab.Implementor = new ConcreteImplementorB(); 
            ab.Operation();
        }
    }
}
